import java.util.Arrays;
//http://127.0.0.1:8848/my/day01/7.html?user=ABC&age=24&sex=2&like=1&degree=2&date=2021-07-07
//http://127.0.0.1:8848/my/day01/7.html  数组[0]
//user=ABC&age=24&sex=2&like=1&degree=2&date=2021-07-07   数组[1]
public class Test {
    public static void main(String[] args) {
        //表单地址栏；get获取
        String url = "http://127.0.0.1:8848/my/day01/7.html?user=ABC&age=24&sex=2&like=1&degree=2&date=2021-07-07";
        String[] b = url.split("\\?")[1].split("&");
//ctrl+单击  进入底层代码

        for (String s:b
             ) {
            String strings = s.split("=")[1];
            System.out.println(strings);
        }
    }
}
